<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Your description goes here" />
<meta name="keywords" content="your,keywords,goes,here" />
<link rel="stylesheet" type="text/css" media="screen,projection"
	href="<%=basePath%>css/blue/style_screen.css" />
<link rel="stylesheet" type="text/css" media="print"
	href="<%=basePath%>css/blue/style_print.css" />
<title>首页</title>

</head>
<body>
	<div class="page-container-1">
		<div class="site-name">
			<p class="title">
				<a href="<%=basePath%>index.html">陕西省人才发展网</a>
			</p>
			<p class="subtitle">
				<a href="<%=basePath%>index.html"></a>
			</p>
		</div>
		<div class="site-slogan-container">
			<div class="site-slogan">
				<p class="title">陕西省人才发展网</p>
			</div>
		</div>
		<!-- Header banner -->
		<div>
			<img class="img-header" src="./img/header.jpg" alt="" />
		</div>
		<!-- Navigation Level 2 -->
		<div class="nav2">
			<ul>
				<li><a href="<%=basePath%>index.html">主页</a></li>
				<li><a href="<%=basePath%>rencai.html" class="selected">人才</a></li>
				<li><a href="<%=basePath%>guide.html">指导类</a></li>
				<li><a href="<%=basePath%>adv.html">广告类</a></li>
				<li><a href="<%=basePath%>bbs.html">论坛</a></li>
				<c:if test="${not empty user }">
					<li><a
						href="<%=basePath%>servlet/InitServlet?id=${user.id}&method=personCenter">个人中心</a></li>
				</c:if>
				<c:if test="${empty user }">
					<li><a href="<%=basePath%>login.html">登陆</a><a
						href="<%=basePath%>register.html">注册</a></li>
				</c:if>
				<c:if test="${not empty user }">
					<li>欢迎你:${user.name}</li>
				</c:if>
			</ul>
		</div>
		<div class="content1">
			<div style="width: 460px;height: 40px;margin-top: 30px;">
				<form action="<%=basePath%>servlet/SearchServlet?m=rencai"
					method="post">
					<table>
						<tr>
							<td><label style="font-weight: bold;">关键字搜索</label> <select
								name="search" style="height: 30px;">
									<option value="1">按标题搜索</option>
									<option value="2">按内容搜索</option>
									<option value="3">按时间搜索</option>
							</select> <input type="text" name="title" style="height: 30px;" placeholder="请输入关键字"/> <input
								type="submit" value="搜索" id="btn" style="height: 30px;background:#3358FF;" /></td>
						</tr>
					</table>
				</form>
			</div>
			<div style="margin-top: 20px;">
				<c:if test="${fn:length(searchList.list)==0}">
					<center>
						<p>
							<font color=gray;
								style="font-family:'宋体'; font-size:25px; font-weight: bold;">没有搜索到你需要内容</font>
						</p>
					</center>
				</c:if>
			</div>
			<center>
				<table>
					<c:forEach items="${searchList.list }" var="searchlist">
						<tr>
							<td><a style="text-decoration: none;"
								href="<%=basePath%>servlet/CKServlet?method=rencai&id=${searchlist.id}"
								title="${searchlist.title }"> ${searchlist.title}</a></td>
							<td>${searchlist.time }</td>
						</tr>
					</c:forEach>
				</table>
				<div style="margin-top: 15px;">
					<c:if test="${fn:length(searchList.list)!=0}">
						<font color="#0000EE"
							style="font-family:'宋体'; font-size:15px; font-weight: bold;">共${searchList.maxPage}页</font>&nbsp;&nbsp; <a
							style="text-decoration: none;"
							href="<%=basePath%>servlet/SearchServlet?m=rencai"><font
							color="#0000EE"
							style="font-family:'宋体'; font-size:15px; font-weight: bold;">第一页</font></a>
						<a style="text-decoration: none;"
							href="<%=basePath%>servlet/SearchServlet?m=rencai&method=pre"><font
							color="#0000EE"
							style="font-family:'宋体'; font-size:15px; font-weight: bold;">上一页</font></a>
						<c:forEach begin="1" end="${searchList.maxPage}" step="1" var="i">
	&nbsp;&nbsp;<a style="text-decoration: none;"
								href="<%=basePath%>servlet/SearchServlet?m=rencai&method=index&ind=${i}"><font
								color="#0000EE"
								style="font-family:'宋体'; font-size:15px; font-weight: bold;">${i }</font></a>
						</c:forEach>
					&nbsp;&nbsp; <a style="text-decoration: none;"
							href="<%=basePath%>servlet/SearchServlet?m=rencai&method=next"><font
							color="#0000EE"
							style="font-family:'宋体'; font-size:15px; font-weight: bold;">下一页</font></a>
						<a style="text-decoration: none;"
							href="<%=basePath%>servlet/SearchServlet?m=rencai&method=last"><font
							color="#0000EE"
							style="font-family:'宋体'; font-size:15px; font-weight: bold;">最后一页</font></a>
					</c:if>
				</div>
			</center>
		</div>
		<div class="sidebar" style="margin-top: 35px; width: 290px;">
			<p>
				<font style="font-size:15px; font-weight: bold;">热点新闻</font>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;&nbsp;
			<a style="color: gray;text-decoration: none;" title="更多" href="<%=basePath%>servlet/AllNewsServlet?m=allnews">>>>更多</a></p>
			
			<div style="margin-top: 20px;">
				<c:forEach items="${zxnl}" var="zx">
					<li style="list-style-type:none;"><a
						style="text-decoration: NONE"
						href="<%=basePath %>servlet/CKServlet?method=zxnews&id=${zx.id}"
						title="${zx.title}" target="_blank"><font
							style="font-size:15px; ">${fn:substring(zx.title,1,16)}......</font></a>
					</li>
					<br />
				</c:forEach>
			</div>
		</div>
		<!-- FOOTER -->
		<div class="footer">
			<jsp:include page="public/footer.jsp"></jsp:include>
			<p>
				<b>Copyright &copy; 2006 Your Company | All Rights Reserved</b>
			</p>
		</div>
	</div>
</body>
</html>
